class Person:
    def __new__(cls, *args, **kwargs):
        print("__new__被调用执行了，cls的id值为{0}".format(id(cls)))
        obj = super().__new__(cls)
        print("创建对象的id值为：{0}".format(id(obj)))
        return obj

    def __init__(self, name, age):
        print("__init__方法被调用了，self的id值为：{0}".format(id(self)))
        self.name = name
        self.age = age


print("object这个类对象的id为{0}".format(id(object)))
print("Person这个类对象的id为{0}".format(id(Person)))
p1 = Person("欧文", 30)
print("p1这个实例对象的id为{0}".format(id(p1)))
